/* 全局重置，确保样式统一 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

body {
  background-color: #fff;
  color: #333;
}

/* 页面容器 */
.house-detail-page {
  width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* 头部返回按钮 + 面包屑 */
.header-section {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.back-button {
  background: none;
  border: none;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.back-button:hover {
  color: #1890ff;
}

.breadcrumb {
  font-size: 12px;
  color: #666;
}

/* 顶部信息栏 */
.top-info-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 20px;
}

.info-item {
  font-size: 14px;
  color: #333;
}

.rent-price {
  color: #f5222d;
  font-weight: 600;
}

.rent-price span {
  font-size: 18px;
}

.tags-wrap {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* 主体内容分栏 */
.main-content {
  display: flex;
  gap: 20px;
}

/* 左侧侧边栏 */
.left-sidebar {
  width: 500px;
  height: 300px;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}

.sidebar-item {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.sidebar-item:hover {
  background-color: #f5f5f5;
}

.arrow {
  color: #999;
  font-size: 12px;
}

.collect-btn {
  color: #999;
  justify-content: center;
  transition: all 0.3s ease;
}

.collect-btn:hover {
  color: #f5222d;
  background-color: #fff8f8;
}

/* 已收藏状态样式 */
.collect-btn.collected {
  color: #fff;
  background-color: #f5222d;
}

.collect-btn.collected:hover {
  background-color: #cf1322;
  color: #fff;
}

/* 右侧轮播图容器 */
.carousel-wrapper {
  flex: 1;
  height: 500px; /* 还原设计稿轮播图高度 */
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}

/* 轮播图样式 */
.custom-carousel {
  height: 100%;
}

.carousel-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持图片比例，填充容器 */
}

/* 加载状态 */
.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 600px;
}

/* 错误状态 */
.error-container {
  width: 1200px;
  margin: 20px auto;
}

/* 响应式适配（确保不同屏幕下布局不变） */
@media (max-width: 1200px) {
  .house-detail-page, .error-container {
    width: 95%;
  }
}